package com.kxj.xfyy;

import java.util.HashMap;
import java.util.Map;

public class ErrorInfo {
	private static Map<Integer, String> list = new HashMap<Integer, String>();
	static {
		list.put(20001, "无有效的网络连接");
		list.put(20002, "网络连接超时");
		list.put(20003, "网络连接发生异常");
		list.put(20004, "无有效的结果");
		list.put(20005, "无匹配结果");
		list.put(20006, "录音失败");
		list.put(20007, "未检测到语音");
		list.put(20008, "音频输入超时");
		list.put(20009, "无效的文本输入");
		list.put(20010, "文件读写失败");
		list.put(20011, "音频播放失败");
		list.put(20012, "无效的参数");
		list.put(20013, "文本溢出");
		list.put(20014, "无效数据");
		list.put(20015, "用户未登陆");
		list.put(20016, "无效授权");
		list.put(20017, "被异常打断");
		list.put(20018, "版本过低");
		list.put(21001, "没有安装语音组件");
		list.put(20002, "引擎不支持");
		list.put(20003, "初始化失败");
		list.put(20004, "调用失败");
		list.put(20005, "引擎繁忙");
		list.put(20018, "本地引擎未初始化");
		list.put(20018, "本地引擎无资源");
		list.put(20018, "本地引擎内部错误");
		list.put(20018, "本地唤醒引擎被异常打断");
		list.put(20018, "未知错误");
	}

	public static String getError(int id) {
		return list.get(id);
	}
}
